home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
mac
/
AZTECW.DIR
/
01710_Script_Wars
< prev
next >
Wrap
Text File
|
1995-09-12
|
7KB
|
307 lines
global gQuest, gBeenClicked
on AWarRollovers1
set gBeenClicked = 0
if (not(CheckClickedStatus(gQuest))) then
if rollover(9) then
ArrowCursor
repeat while rollover(9)
set the locH of sprite 10 to 294
set the locV of sprite 10 to 293
updatestage
end repeat
set the locH of sprite 10 to 994
updatestage
else
if rollover(11) then
repeat while rollover(11)
AztecCursor
if the mousedown then
set GBeenClicked = 1
else
if gBeenClicked = 1 then
repeat while gBeenClicked = 1
AnimateWar1
end repeat
end if
end if
end repeat
else
if rollover(40) then
HandCursor
else
if rollover(41) then
HandCursor
else
if rollover(42) then
HandCursor
else
ArrowCursor
end if
end if
end if
end if
end if
end if
RandomQuestion(gQuest)
end
on AWarRollovers2
set gBeenClicked = 0
if (not(CheckClickedStatus(gQuest))) then
if rollover(9) then
repeat while rollover(9)
AztecCursor
puppetsprite 10, true
set the locH of sprite 10 to 151
set the locV of sprite 10 to 202
updatestage
if the mousedown then
set GBeenClicked = 1
else
if gBeenClicked = 1 then
repeat while gBeenClicked = 1
AnimateWar2
end repeat
end if
end if
end repeat
puppetsprite 10, false
updatestage
else
if rollover(8) then
repeat while rollover(8)
AztecCursor
puppetsprite 11, true
set the locH of sprite 11 to 414
set the locV of sprite 11 to 288
updatestage
if the mousedown then
set GBeenClicked = 1
else
if gBeenClicked = 1 then
repeat while gBeenClicked = 1
AnimateLoop 8, 963, 4, "SA321001.AIF", 1
end repeat
end if
end if
end repeat
set the locH of sprite 11 to 914
puppetsprite 11, false
updatestage
else
if rollover(12) then
ArrowCursor
repeat while rollover(12)
set the locH of sprite 13 to 213
set the locV of sprite 13 to 338
updatestage
end repeat
set the locH of sprite 13 to 913
updatestage
else
if rollover(39) then
HandCursor
else
if rollover(41) then
HandCursor
else
if rollover(42) then
HandCursor
else
ArrowCursor
end if
end if
end if
end if
end if
end if
end if
RandomQuestion(gQuest)
end
on AnimateWar1
ArrowCursor
set gAnimationcast1 = 937
set gAnimationcast2 = 947
set gAnimationcast3 = 942
set count = 0
puppetsound "SA320800.AIF (FIGHT)"
updatestage
repeat while count < 2 and (the mouseUp)
set the loch of sprite 3 to 349
set the locV of sprite 3 to 112
updatestage
wait .1
set the castnum of sprite 3 = gAnimationcast1 + 1
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 3 = gAnimationcast1 + 2
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 3 = gAnimationcast1 + 3
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the loch of sprite 3 to 849
set the loch of sprite 4 to 379
set the locV of sprite 4 to 225
updatestage
wait .1
set the castnum of sprite 4 = gAnimationcast2 + 1
set the loch of sprite 2 to 283
set the locV of sprite 2 to 154
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 4 = gAnimationcast2 + 2
set the castnum of sprite 2 = gAnimationcast3 + 1
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 2 = gAnimationcast3 + 2
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 4 = gAnimationcast2 + 2
set the castnum of sprite 2 = gAnimationcast3 + 3
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 4 = gAnimationcast2 + 1
set the castnum of sprite 2 = gAnimationcast3 + 2
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 4 = gAnimationcast2
set the castnum of sprite 2 = gAnimationcast3 + 1
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the loch of sprite 4 to 849
set the castnum of sprite 2 = gAnimationcast3 + 1
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the loch of sprite 2 to 849
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set count = count + 1
end repeat
set the loch of sprite 2 to 849
set the loch of sprite 3 to 849
set the loch of sprite 4 to 849
updatestage
sound fadeout 1, 2*60
set gBeenClicked = 0
end
on AnimateWar2
ArrowCursor
set gAnimationcast1 = 956
set gAnimationcast2 = 960
set count = 0
puppetsound "SA320900.AIF"
updatestage
repeat while count < 5 and (the mouseUp)
set the loch of sprite 6 to 341
set the locV of sprite 6 to 133
set the loch of sprite 7 to 425
set the locV of sprite 7 to 229
updatestage
wait .1
set the castnum of sprite 6 = gAnimationcast1 + 1
set the castnum of sprite 7 = gAnimationcast2 + 1
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 6 = gAnimationcast1 + 2
set the castnum of sprite 7 = gAnimationcast2 + 2
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 7 = gAnimationcast2 + 1
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 6 = gAnimationcast1 + 2
set the castnum of sprite 7 = gAnimationcast2
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 6 = gAnimationcast1 + 1
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set the castnum of sprite 6 = gAnimationcast1
updatestage
wait .1
if (the mousedown) then
exit repeat
end if
set count = count + 1
end repeat
set the loch of sprite 6 to 849
set the loch of sprite 7 to 849
updatestage
sound stop 1
set gBeenClicked = 0
end